package com.plant.entity;

import java.sql.Timestamp;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * TagsContent entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "tags_content", catalog = "mr_plants")
public class TagsContent implements java.io.Serializable {

	// Fields

	private Integer id;
	private String text;
	private Timestamp createTime;

	// Constructors

	/** default constructor */
	public TagsContent() {
	}

	/** full constructor */
	public TagsContent(String text, Timestamp createTime) {
		this.text = text;
		this.createTime = createTime;
	}

	// Property accessors
	@Id
	@GeneratedValue
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "text")
	public String getText() {
		return this.text;
	}

	public void setText(String text) {
		this.text = text;
	}

	@Column(name = "create_time", length = 19)
	public Timestamp getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(Timestamp createTime) {
		this.createTime = createTime;
	}

}